#set(seoTitle="个人认证")
#@layout()
#define main()
#define css()
<link rel="stylesheet" type="text/css" href="/static/css/user-setting.css">
#end
<!-- 内容区域 -->
<div class="aw-container-wrap">
	<div class="container">
		<div class="row">
			<div class="aw-content-wrap clearfix">
				<div class="aw-user-setting">
					<div class="tabbable">
						<ul class="nav nav-tabs aw-nav-tabs active">
							<li class="active">
								<a href="/my/setting/verify/">申请认证</a>
							</li>
							<li>
								<a href="/my/setting/security">安全设置</a>
							</li>
							<li>
								<a href="/my/setting/avatar/">头像修改</a>
							</li>
							<li>
								<a href="/my/setting">基本资料</a>
							</li>
							<h2>
								<i class="icon icon-setting"></i>用户设置
							</h2>
						</ul>
					</div>
					<div class="tab-content clearfix">
						<div class="aw-mod">
							<div class="mod-body">
								<div class="aw-mod aw-user-setting-bind">
									<div class="mod-head">
										<h3>个人认证</h3>
									</div>
									<form id="verify_update_form" class="form-horizontal" action="/my/setting/verifySetting" method="post">
										<div class="mod-body">
											<div class="form-group">
												<label class="col-lg-2 control-label" for="input-password-old">当前状态</label>
												#if(loginUserMessage.is_auth == 1)
												<div class="col-lg-4">
													已经认证
												</div>
												#else
												<div class="col-lg-4">
													没有认证
												</div>
												#end
											</div>
											<div class="form-group">
												<label class="col-lg-2 control-label" for="input-password-new">认证说明：</label>
												<div class="col-lg-4">
													<input type="text" class="form-control" id="authName" name="authName" value="#(loginUserMessage.authName)">
												</div>
											</div>
											<div class="form-group">
												<label class="col-lg-2 control-label" for="input-password-re-new">真实姓名：</label>
												<div class="col-lg-4">
													<input type="text" class="form-control" id="trueName" name="trueName" value="#(loginUserMessage.trueName)">
												</div>
											</div>
										</div>
										<div class="mod-footer clearfix">
											<input id="verify_update_btn" type="submit" class="btn btn-large btn-success pull-right" value="提交"/>
										</div>
									</form>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<!-- 内容区域end -->
#end

#define js()
<script type="text/javascript" src="/static/jquery_form/jquery.form.min.js"></script>
<script type="text/javascript" src="/static/layer/layer/layer.js"></script>
<script type="text/javascript" src="/static/js/apppublic.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$("#verify_update_form").ajaxForm({
			dataType: "json"
			, beforeSubmit: function(formData, jqForm, options) {
			}
			, success: function(ret) {
				if (ret.state == "ok") {
					showOkMsg(ret.msg);
				} else {
					showErrorMsg(ret.msg);
				}
			}
			, error: function(ret) {
				alert(ret.msg);
			}
		});
	});
</script>
#end